Skip to content

Fix async drop multi crate crash#153274

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
ValorZard:async-drop-multi-crate-crash
Mar 4, 2026
Merged

Fix async drop multi crate crash#153274
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
ValorZard:async-drop-multi-crate-crash

Conversation

@ValorZard
Copy link

@ValorZard ValorZard commented Mar 2, 2026

fixes #142572
Again, I've been talking in the Zulip about this: #wg-async > is there a way I can help with Async Drop? @ 💬

TL;DR: This is going to be a bit of a refactor, hold your horses

Also, I might end up splitting this into two PRs, so I can first merge my elaborate_drop.rs refactor, and then my fix for the crash later, but IDK yet

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 2, 2026
@rust-log-analyzer

This comment has been minimized.

@ValorZard ValorZard marked this pull request as ready for review March 2, 2026 06:57
@rustbot
Copy link
Collaborator

rustbot commented Mar 2, 2026

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 2, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 2, 2026

r? @davidtwco

rustbot has assigned @davidtwco.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler, mir, mir-opt
  • compiler, mir, mir-opt expanded to 69 candidates
  • Random selection from 15 candidates

@rustbot

This comment has been minimized.

@rustbot rustbot added the has-merge-commits PR has merge commits, merge with caution. label Mar 2, 2026
@ValorZard ValorZard changed the title [WIP] Attempt to fix async drop multi crate crash Fix async drop multi crate crash Mar 2, 2026
@ValorZard ValorZard force-pushed the async-drop-multi-crate-crash branch from b12bea5 to 9375f85 Compare March 2, 2026 06:59
@rustbot
Copy link
Collaborator

rustbot commented Mar 2, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rustbot rustbot removed the has-merge-commits PR has merge commits, merge with caution. label Mar 2, 2026
@ValorZard ValorZard force-pushed the async-drop-multi-crate-crash branch from 9375f85 to c757f7a Compare March 2, 2026 07:01
@ValorZard
Copy link
Author

r? @oli-obk

@rustbot rustbot assigned oli-obk and unassigned davidtwco Mar 2, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 2, 2026

oli-obk is not on the review rotation at the moment.
They may take a while to respond.

@rust-log-analyzer

This comment has been minimized.

@ValorZard ValorZard force-pushed the async-drop-multi-crate-crash branch from c757f7a to ab792af Compare March 2, 2026 07:55
@petrochenkov petrochenkov added the F-async_drop `#![feature(async_drop)]` label Mar 2, 2026
@oli-obk
Copy link
Contributor

oli-obk commented Mar 2, 2026

if you write fixes #142572 in the main PR message, the issue will automatically be closed when the PR merges

@ValorZard ValorZard force-pushed the async-drop-multi-crate-crash branch from ab792af to 2414f6d Compare March 2, 2026 22:44
@ValorZard ValorZard force-pushed the async-drop-multi-crate-crash branch from b8b8da7 to db6ee18 Compare March 4, 2026 08:40
@ValorZard
Copy link
Author

@oli-obk all of your comments should be addressed, this should be ready to merge (unless CI/CD fails)

@oli-obk
Copy link
Contributor

oli-obk commented Mar 4, 2026

@bors r+ rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 4, 2026

📌 Commit db6ee18 has been approved by oli-obk

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 4, 2026
rust-bors bot pushed a commit that referenced this pull request Mar 4, 2026
Rollup of 5 pull requests

Successful merges:

 - #153341 (std: refactor Xous startup code)
 - #152816 (Check for region dependent goals on type_op itself as well)
 - #153224 (Fix LegacyKeyValueFormat report from docker build: disabled)
 - #153274 (Fix async drop multi crate crash)
 - #153324 (fix autodiff parsing for non-trait impl)
@rust-bors rust-bors bot merged commit 5bd6a0c into rust-lang:main Mar 4, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Mar 4, 2026
rust-timer added a commit that referenced this pull request Mar 4, 2026
Rollup merge of #153274 - ValorZard:async-drop-multi-crate-crash, r=oli-obk

Fix async drop multi crate crash

fixes #142572
Again, I've been talking in the Zulip about this: [#wg-async > is there a way I can help with Async Drop? @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/187312-wg-async/topic/is.20there.20a.20way.20I.20can.20help.20with.20Async.20Drop.3F/near/575627286)

TL;DR: This is going to be a bit of a refactor, hold your horses

Also, I might end up splitting this into two PRs, so I can first merge my elaborate_drop.rs refactor, and then my fix for the crash later, but IDK yet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-async_drop `#![feature(async_drop)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

segmentation fault when using async_drop feature

6 participants